#ifndef SCENE_TITLE_H
#define SCENE_TITLE_H
#include "../core/scene.h"
class hudText;
class hudButton;
class uiMouse; // 鼠标UI
class sceneTitle : public scene{
protected:
    SDL_FColor Color_ = {0.5f, 0.5f, 0.5f, 0};
    float colorTimer = 0.0f;
    hudButton* startButton = nullptr;
    hudButton* creditsButton = nullptr;
    hudButton* quitButton = nullptr;
    hudText* credits = nullptr;
    uiMouse* mouse = nullptr;
public:
    virtual void init() override;
    virtual void update(float dt) override;
    virtual void render() override;
    virtual void clean() override;
    virtual bool handleEvents(SDL_Event& event) override;
    virtual void loadData(const char* filename) override;
private:
    void renderBackground();
    void updateColor(float dt);
    void checkButtonStart();
    void checkButtonCredits();
    void checkButtonQuit();
};

#endif // SCENE_TITLE_H